/*对象类型中的每个属性也可以说明类型、属性是否可选、属性是否只读*/
type PersonType = {
    name: string
    age?: number
}

type StudentType = {
    sex: string
    readonly id: number
}


interface Dog {
    name?: string
    readonly sex: string
}

const p: StudentType & PersonType = {
    name: "陶品奇",
    id: 100,
    sex: "男"
}
